Database:  /dbdata/interbase/pcweek.gdb, User: pcweek
/* ------------------ */
/* load uniques table */
/* ------------------ */

create table uniques_source external '/dbimportdata/fixedlength/uniques.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into uniques
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from uniques_source;
commit;
/* ------------------ */
/* load hundred table */
/* ------------------ */

create table hundred_source external '/dbimportdata/fixedlength/hundred.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into hundred
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from hundred_source;
commit;
/* ----------------- */
/* load tenpct table */
/* ----------------- */

create table tenpct_source external '/dbimportdata/fixedlength/tenpct.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into tenpct
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from tenpct_source;
commit;
/* ------------------ */
/* load updates table */
/* ------------------ */

create table updates_source external '/dbimportdata/fixedlength/updates.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into updates
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from updates_source;
commit;
/* ------------------ */
/* load tenthou table */
/* ------------------ */

create table tenthou_source external '/dbimportdata/fixedlength/tenthou.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into tenthou
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from tenthou_source;
commit;
/* ------------------ */
/* load hunthou table */
/* ------------------ */

create table hunthou_source external '/dbimportdata/fixedlength/hunthou.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into hunthou
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from hunthou_source;
commit;
/* ------------------ */
/* load twomill table */
/* ------------------ */

create table twomill_source external '/dbimportdata/fixedlength/twomill.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into twomill
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from twomill_source;
commit;
/* -------------------- */
/* load threemill table */
/* -------------------- */

create table threemill_source external '/dbimportdata/fixedlength/threemill.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into threemill
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from threemill_source;
commit;
/* ------------------- */
/* load fourmill table */
/* ------------------- */

create table fourmill_source external '/dbimportdata/fixedlength/fourmill.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into fourmill
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from fourmill_source;
commit;
/* ------------------- */
/* load fivemill table */
/* ------------------- */

create table fivemill_source external '/dbimportdata/fixedlength/fivemill.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into fivemill
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from fivemill_source;
commit;
/* ------------------ */
/* load fourram table */
/* ------------------ */

create table fourram_source external '/dbimportdata/fixedlength/fourram.dat' (
 src_f1 char(10),
 src_f2 char(10),
 src_f3 char(10),
 src_f4 char(13),
 src_f5 char(11),
 src_f6 char(11),
 src_f7 char(10),
 src_f8 char(10),
 src_f9 char(20),
 src_f10 char(80),
 CR char(1)
);
commit;
insert into fourram
 select
  cast (src_f1 as integer),
  cast (src_f2 as integer),
  cast (src_f3 as integer),
  cast (src_f4 as float),
  cast (src_f5 as double precision),
  cast (src_f6 as numeric (18,4)),
  cast (src_f7 as date),
  cast (src_f8 as char(10)),
  cast (src_f9 as char(20)),
  cast (src_f10 as varchar(80))
 from fourram_source;
commit;
/* ------------------- */
/* clean up after load */
/* ------------------- */

drop table uniques_source;
drop table hundred_source;
drop table tenpct_source;
drop table updates_source;
drop table tenthou_source;
drop table hunthou_source;
drop table twomill_source;
drop table threemill_source;
drop table fourmill_source;
drop table fivemill_source;
drop table fourram_source;
commit;
exit;
